function flat(array, result) {
	const arr = result || []
	array.forEach(item => {
		if (Array.isArray(item)){
			flat(item, arr)
		} else {
			arr.push(typeof item === 'number' && !isNaN(item) ? item + '' : item)
		}
	})
	return arr
}
 function pick(obj, ...args) {
	const object = {}
	const keyIncludesArray = flat(args)
	Object.keys(obj).forEach(key => {
		if (keyIncludesArray.includes(key)) {
			object[key] = obj[key]
		}
	})
	return object
}

export default pick